package com.csap.framework.oauth2.server.model;

import com.csap.framework.annotation.apidoc.ApiModel;
import com.csap.framework.annotation.apidoc.ApiModelProperty;
import com.csap.framework.annotation.apidoc.Description;
import com.csap.framework.oauth2.server.entity.UserInfoEntity;
import com.csap.mybatisplus.extension.activerecord.CloneModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author yangchengfu
 * @dateTime 2021-07-25 23:51:30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(description = "用户信息表", value = "userInfo对象")
@Description(value = "用户信息表Model")
public class UserInfoModel extends CloneModel<UserInfoModel, UserInfoEntity> {
    @ApiModelProperty(value = "用户ID")
    private String userId;
    @ApiModelProperty(value = "用户名")
    private String userName;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "是否可用")
    private Integer enabled;
    @ApiModelProperty(value = "平台标识")
    private String platform;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "昵称")
    private String nickName;
    @ApiModelProperty(value = "头像")
    private String avatar;
    @ApiModelProperty(value = "注册时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "最后登录时间")
    private LocalDateTime lastLoginTime;
    @ApiModelProperty(value = "登录次数")
    private Long loginCount;
    @ApiModelProperty(value = "手机号码")
    private String mobile;
    @ApiModelProperty(value = "性别")
    private Integer sex;
    @ApiModelProperty(value = "年龄")
    private Integer age;
    @ApiModelProperty(value = "区域ID")
    private Long regionId;
    @ApiModelProperty(value = "用户注册地址")
    private String address;
    @ApiModelProperty(value = "注册的IP")
    private String ip;
    @ApiModelProperty(value = "用户类型")
    private String userType;
}
